package com.sander.guardmanagement.ui.model;

import com.sander.guardmanagement.response.ResponseHomeGetBuildingData;
import com.sander.guardmanagement.response.ResponseHomeGetCommunityData;
import com.sander.guardmanagement.response.ResponseHomeGetRoomData;
import com.sander.guardmanagement.response.ResponseHomeGetSubCommunityData;

import java.io.Serializable;

/**
 * Created by sander on 2017/4/26.
 */

public class SelectedBoxModel implements Serializable {
    public void setCommunityData(ResponseHomeGetCommunityData communityData) {
        this.city_id = communityData.getCity_id();
        this.city_name = communityData.getCity_name();
        this.community_id = communityData.getId() + "";
        this.community = communityData.getCommunity();

    }

    public void setSubCommunityData(ResponseHomeGetSubCommunityData subCommunityData) {
        this.sub_community_id = subCommunityData.getSub_community_id() + "";
        this.sub_community_name = subCommunityData.getSub_community_name();

    }

    public void setBuildingData(ResponseHomeGetBuildingData buildingData) {
        this.building_id = buildingData.getId() + "";
        this.building_name = buildingData.getBuilding_name();
    }

    public void setRoomData(ResponseHomeGetRoomData roomData) {
        this.room_id = roomData.getId() + "";
        this.room_name = roomData.getRoom_name();
    }

    public String city_id ;
    public String city_name;

    public String community_id;
    public String community;

    public String sub_community_id;
    public String sub_community_name;

    public String building_id;
    public String building_name;

    public String room_id;
    public String room_name;






    public String getBoxTitle()
    {
        String box = "";
        box += this.city_name + "\n" + this.community
                + this.sub_community_name + this.building_name + this.room_name;
        return box;
    }
}
